package com.example.demo.entity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @description：分页接口响应的数据.
 * @author：lw
 * @create_time：2024/1/4
 **/
@Schema(description = "分页信息")
@Data
public class PageVo <dataT>{
    public PageVo(List<dataT> list, Long current, Long size, Long total){
        this.current=current;
        this.size=size;
        this.total=total;
        this.list=list;
    }
    public PageVo(){}

    @Schema(description = "当前页码")
    private Long current;
    @Schema(description = "页尺寸")
    private Long size;
    @Schema(description = "总条数")
    private Long total;
    @Schema(description = "当前页数据")
    private List<dataT> list;
}
